import request from "../utils/request";

//获取会员列表  manager/vip/userList
export const VipList=async (data)=>{
	return request.postRequest("manager/vip/userList",data)
}

//获取单条会员详情  manager/vip/getUserInfo
export const GetVipDetails=async (data)=>{
	return request.getRequest("manager/vip/getUserInfo",data)
}

//获取会员标签下拉框   manager/vip/vipTagList
export const MembershipTags=async (data)=>{
	return request.postRequest("manager/vip/vipTagList",data)
}

//获取会员注册列表下拉框
export const MembershipSource=async ()=>{
	return request.getRequest("manager/vip/vipSourceList")
}

//会员列表i中修改会员标签  manager/vip/updateUserTag
export const UpdateVipTags=async (data)=>{
	return request.postRequest("manager/vip/updateUserTag",data)
}

//添加会员  manager/vip/addUser
export const AddVip=async (data)=>{
	return request.postRequest("manager/vip/addUser",data)
}

//获取会员标签列表   manager/viptag/userTagList
export const GitVipTagList=async (data)=>{
	return request.postRequest("manager/viptag/userTagList",data)
}

//添加会员标签  manager/viptag/addVipTag
export const AddVipTag=async (data)=>{
	return request.postRequest("manager/viptag/addVipTag",data)
}

//修改会员标签
export const UpdateVipTagsIn=async (data)=>{
	return request.postRequest("manager/viptag/updateTag",data)
}

//删除会员标签  manager/viptag/deleteTag
export const DelVipTag=async (data)=>{
	return request.postRequest("manager/viptag/deleteTag",data)
}

//会员积分模块会员列表
export const VipScoreList=async (data)=>{
	return request.postRequest("manager/vipScore/vipScoreUserList",data)
}
//会员积分积分规则列表
// export const VipScoreList=async (data)=>{
// 	return request.postRequest("manager/vipScore/vipScoreUserList",data)
// }

//会员余额模块会员列表
export const VipbalanceList=async (data)=>{
	return request.postRequest("manager/vip/userBalanceList",data)
}
//会员余额上方总余额
export const Vipbalancetotal=async ()=>{
	return request.getRequest("manager/vip/calculateBalance")
}
//会员余额详情
export const VipbalanceDetail=async (data)=>{
	return request.getRequest("manager/vip/userBalanceDetail",data)
}
//会员余额搜索
export const VipbalanceSearch=async (data)=>{
	return request.postRequest("manager/vip/yueList",data)
}

//会员佣金会员列表
export const VipcommissionList=async (data)=>{
	return request.postRequest("manager/vip/moneyList",data)
}
//会员佣金搜索
export const VipcommissionSearch=async (data)=>{
	return request.postRequest("manager/vip/yueList",data)
}

